﻿@using Urs.Core
@using Urs.Data.Domain.Users
@using Urs.Services.Common
@inject IWebHelper webHelper
@inject IWorkContext workContext
@inject IHttpContextAccessor httpContextAccessor
@using Microsoft.AspNetCore.Http
@{
    var rawUrl = webHelper.GetRawUrl(httpContextAccessor.HttpContext.Request);
    var hideSidebar = rawUrl == "/admin";
}
<!DOCTYPE html>
<html>
<head>
    <title>UrShop管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
    <script type="text/javascript" src="/layuiadmin/layui/layui.js"></script>
</head>
<body class="@if(hideSidebar){<text>layui-layout-body</text>} dark-blue" layadmin-themealias="default">
    @RenderBody()
</body>
</html>